#ifndef _XMLPARSE_HPP
#define _XMLPARSE_HPP
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/xml_parser.hpp>
#include <string>
#include "dbconfig.hpp"
#include "emailconfig.hpp"
#include "ftpprofiles.hpp"
using std::string;
using boost::property_tree::ptree;
using namespace com_oocl_monitor::domain;
namespace com_oocl_monitor {
	namespace dao {
		class XmlParse {
		public:
			XmlParse();
			void parse(DbConfig &dbConfig, const string& fileName);
			void parse(EmailConfig &emailConfig, const string& fileName);
			void parse(FtpProfileList &ftpProfileList, const string& fileName);
		private:
			ptree _pt;
		};
	}
}

#endif